﻿#include "list.h"

#define MAX_COUNT   3

dataEntry data[MAX_COUNT]=
{
    {12,28,"ZHY"},
    {13,29,"BZI"},
    {16,26,"QIU"},
};

int main(int argc,char* argv[])
{
    uint i=0; 
    Ret_Status ret;
    list** plist=NULL;
    list* node;
    
    plist=(list**)malloc(sizeof(list*));
    assert(plist!=NULL);
    memset(plist,0x0,sizeof(list*));

    
    for(i=0;i<MAX_COUNT;i++)
    {
        node=(list*)list_createNode((dataEntry*)&data[i]);
        list_insert(plist,node);
    }
    
    list_dump(*plist);  

    list_remove(plist,13);

    list_dump(*plist);
    
    return SUCCESS;
}
